import { getPayData } from '@/api/pay'

export default {
  namespaced: true,
  state: {
    payData: {}
  },
  actions: {
    async getPayData (context) {
      const { data } = await getPayData()
      context.commit('setPayData', data)
      console.log(data)
    }
  },
  mutations: {
    setPayData (state, data) {
      state.payData = data
    }
  }
}
